<?php
namespace app\app\validate;
use think\Validate;

class Room extends Validate{

    protected $rule = [
        'room_id' => 'require|number',
        'num'     => 'require|number',
        'result'  => 'require|number'
    ];

    protected $message = [
        'room_id.require' => '房间号必填',
        'room_id.number'  => '房间号必须为数字',
        'num.require'     => 'num必填',
        'num.number'      => 'num必须为数字',
        'result.require'  => 'result必填',
        'result.number'   => 'result必须为数字',
    ];
}